package com.ruoyi.business.domain;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 应急救援管理对象 rescue_task
 *
 * @author bcl
 * @date 2024-09-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RescueTask implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * id编号
     */
    private Long id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long uId;

    /**
     * 商家id
     */
    @Excel(name = "商家id")
    private Long mId;

    /**
     * 发起时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "发起时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date initiationTime;

    /**
     * 救援类型id
     */
    @Excel(name = "救援类型id")
    private Long typeId;

    /**
     * 当前位置/起点
     */
    @Excel(name = "当前位置/起点")
    private String position;

    /**
     * 终点
     */
    @Excel(name = "终点")
    private String terminus;

    /**
     * 求助人
     */
    @Excel(name = "求助人")
    private String seekHelp;

    /**
     * 联系方式
     */
    @Excel(name = "联系方式")
    private String phone;

    /**
     * 车牌号
     */
    @Excel(name = "车牌号")
    private String carNum;

    /**
     * 车型
     */
    @Excel(name = "车型")
    private String carType;

    /**
     * 求助信息描述
     */
    @Excel(name = "求助信息描述")
    private String description;

    /**
     * 状态（0求助中、1已接单、2超时）
     */
    @Excel(name = "状态", readConverterExp = "0=求助中、1已接单、2超时")
    private Integer status;

    /**
     * 删除状态
     */
    @Excel(name = "删除状态")
    private Long deleted;

    private String username;
    private String shopName;
    private String rescueTypeName;
}
